package com.example.servicefeign;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by 1 on 2017/8/17.
 */
@RestController
public class FeignController {

    @Autowired
    private FeignServiceHi feignServiceHi;

    @RequestMapping(value = "hi",method = RequestMethod.GET)
    private String sayHi(@RequestParam String name){
        return feignServiceHi.sayHiToClient(name);
    }
}
